﻿using One.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace OneWeb.Repository
{
    public class AuthorRepository : Repository<Author>
    {
        public List<Article> GetEssays(int authorId)
        {
            return base.DbSet.Find(authorId).Articles.ToList();
        }
    }
}